package com.czn.dao;

import com.czn.entity.Hospitalization;
import org.beetl.sql.core.engine.PageQuery;
import org.beetl.sql.core.mapper.BaseMapper;

import java.util.List;


public interface HospitalizationDao extends BaseMapper<Hospitalization> {
    // 分页查询所有住院记录
    void selectLit(PageQuery<Hospitalization> query);

    // 根据id查询住院记录
    Hospitalization selectOne(Integer id);

    // 查询所有住院记录
    List<Hospitalization> selectAll();

    // 根据患者id查询最新的一条记录
    Hospitalization selectOneById(Integer userId);

    //根据患者id查询所有记录
    List<Hospitalization> selectListById(Integer userId);
}